mountoperation: fix previous commit
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 18 Sep 2012 17:48:07 +0000 (13:48 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 18 Sep 2012 17:48:07 +0000 (13:48 -0400)
We don't want to call this method if there's no shell agent.

gtk/gtkmountoperation.c

index 47b7ff22b39f2ac3e285044a75fa737300048983..ed9178ae07c582bc0b0a07706816eedf57e75f4e 100644 (file)
@@ -202,7 +202,8 @@ gtk_mount_operation_init (GtkMountOperation *operation)
     g_clear_object (&operation->priv->handler);
   g_free (name_owner);
 
-  g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (operation->priv->handler), G_MAXINT);
+  if (operation->priv->handler)
+    g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (operation->priv->handler), G_MAXINT);
 }
 
 static void